<template>
    <div class="center">
<table width="631" border="0" cellpadding="0" cellspacing="0" style="width:473.25pt;border-collapse:collapse;table-layout:fixed;">
   <colgroup><col width="72" style="width:54.00pt;">
   <col width="101" style="mso-width-source:userset;mso-width-alt:3232;">
   <col width="72" span="5" style="width:54.00pt;">
   <col width="98" style="mso-width-source:userset;mso-width-alt:3136;">
   </colgroup><tbody><tr height="19" style="height:14.25pt;">
    <td class="xl65" height="38" width="533" colspan="7" rowspan="2" style="height:28.50pt;width:399.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;text-align:center" x:str="">继电保护安全措施票</td>
    <td class="xl66" width="98" rowspan="2" style="width:73.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="4" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">对应工作票编号：</td>
    <td class="xl67" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.ticketId}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="38" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作内容</td>
    <td class="xl66" colspan="7" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.workDetail}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl66" height="38" colspan="2" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">被试设备及保护名称</td>
    <td class="xl66" colspan="6" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.testProtectName}}</td>
    <td class="xl66" colspan="6" rowspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="testProtectName"
      placeholder="请输入"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人</td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.workOndutyPerson0}}</td>
     <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <a-input v-model="workOndutyPerson0"></a-input>
     </td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票签发人</td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAsignPerson}}</td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
        <a-input v-model="ticketAsignPerson"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">计划工作时间</td>
    <td class="xl68" x:str="">自</td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.startDate}}</td>
     <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="startDate"></j-date>
     </td>
    <td class="xl68" x:str="">至</td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.endDate}}</td>
    <td class="xl66" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="endDate"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="8" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;text-align:center" x:str="">工作条件</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="3" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">相关一次设备运行情况</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.machineRunDetail}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <a-textarea
      v-model="machineRunDetail"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="3" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">被试保护作用的断路器</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.testCutMachine}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="testCutMachine"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="3" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作盘柜上的运行设备</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.workRunMachine}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model=" workRunMachine"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" colspan="3" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作盘柜与其他保护的连接线</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.workConnectLine}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="workConnectLine"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl69" height="57" colspan="8" rowspan="3" style="height:42.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施：包括应打开及恢复的二次接线、压板、连锁开关，需短接或改动的二次等，<br/>按工作顺序填写安全措施。已执行，在执行栏打“√”；已恢复，再恢复栏打“√”</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
    <td class="xl66" height="19" style="height:14.25pt;" x:str="">序号</td>
    <td class="xl66" x:str="">已执行</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施内容</td>
    <td class="xl66" x:str="">已恢复</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">1</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone1}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone1" dictCode="ele_pro"  style="width:90px;"/>
     </td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail1}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail1"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover1}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover1" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">2</td>
   <td class="xl68" v-if="!ing">{{this.bb.ifDone2}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone2" dictCode="ele_pro"  style="width:90px;"/>
     </td>
   <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail2}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail2"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
   <td class="xl68" v-if="!ing">{{this.bb.ifRecover2}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover2" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">3</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone3}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone3" dictCode="ele_pro"  style="width:90px;"/>
     </td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail3}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail3"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover3}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover3" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">4</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone4}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone4" dictCode="ele_pro"  style="width:90px;"/>
     </td>
   <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail4}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail4"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover4}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover4" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">5</td>
   <td class="xl68" v-if="!ing">{{this.bb.ifDone5}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone5" dictCode="ele_pro"  style="width:90px;"/>
     </td>
   <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail5}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail5"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover5}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover5" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">6</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone6}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone6" dictCode="ele_pro"  style="width:90px;"/>
     </td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail6}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail6"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover6}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover6" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">7</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone7}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone7" dictCode="ele_pro"  style="width:90px;"/>
     </td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail7}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail7"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
   <td class="xl68" v-if="!ing">{{this.bb.ifRecover7}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover7" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">8</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone8}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone8" dictCode="ele_pro"  style="width:90px;"/>
     </td>
   <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail8}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail8"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover8}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover8" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">9</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone9}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone9" dictCode="ele_pro"  style="width:90px;"/>
     </td>
   <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail9}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail9"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover9}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover9" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;">10</td>
    <td class="xl68" v-if="!ing">{{this.bb.ifDone10}}</td>
     <td class="xl68" v-if="ing">
          <j-dict-select-tag v-model="ifDone10" dictCode="ele_pro"  style="width:90px;"/>
     </td>
   <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail10}}</td>
    <td class="xl66" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-textarea
      v-model="actionDetail10"
      placeholder="请输入"
      :auto-size="{ minRows: 1, maxRows: 1 }"
    />
    </td>
    <td class="xl68" v-if="!ing">{{this.bb.ifRecover10}}</td>
    <td class="xl68" v-if="ing">
        <j-dict-select-tag v-model="ifRecover10" dictCode="ele_pro"  style="width:90px;"/>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl68" height="19" style="height:14.25pt;" x:str="">执行人</td>
    <td class="xl66" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ing">{{this.bb.doPerson}}</td>
    <td class="xl66" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ing">
        <a-input v-model="doPerson"></a-input>
    </td>
    <td class="xl68" x:str="">监护人</td>
    <td class="xl66" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" colspan="8" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">备注</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl66" height="57" colspan="8" rowspan="3" style="height:42.75pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
   </tr><tr height="19" style="height:14.25pt;">
   <!--[if supportMisalignedColumns]-->
    </tr><tr width="0" style="display:none;">
     <td width="101" style="width:76;"></td>
     <td width="98" style="width:74;"></td>
    </tr>
   <!--[endif]-->
  </tbody></table>
    </div>
</template>
<script>
import store from '@/store'
import{Time} from '@/utils/time'
import JDate from '@/components/jeecg/JDate.vue'
import { httpAction, getAction,postAction,putAction } from '@/api/manage'
export default {
      components: {
      JDate,
    },
    data(){
        return{
          draft:false,
          testProtectName:'',
          workOndutyPerson0:store.getters.userInfo.realname,
          startDate:'',    
          endDate:'',    
          machineRunDetail:'',    
          testCutMachine:'',     
          workRunMachine:'',     
          workConnectLine:'',   
          actionDetail1:'',
          actionDetail2:'',
          actionDetail3:'',
          actionDetail4:'',
          actionDetail5:'',
          actionDetail6:'',
          actionDetail7:'',
          actionDetail8:'',
          actionDetail9:'',
          actionDetail10:'',
          sign:false,
          ticketAsignPerson:store.getters.userInfo.realname,
          ing:false,
          ifDone1:'',
          ifDone2:'',
          ifDone3:'',
          ifDone4:'',
          ifDone5:'',
          ifDone6:'',
          ifDone7:'',
          ifDone8:'',
          ifDone9:'',
          ifDone10:'',
          ifRecover1:'',
          ifRecover2:'',
          ifRecover3:'',
          ifRecover4:'',
          ifRecover5:'',
          ifRecover6:'',
          ifRecover7:'',
          ifRecover8:'',
          ifRecover9:'',
          ifRecover10:'',
          doPerson:store.getters.userInfo.realname,
        }
    },
    methods:{
        refresh(){
            return this.bb.type
        },
        back(){
            var obj = {}
            if(this.draft == true){
                obj = {
                    id:this.bb.id,
                    testProtectName:this.testProtectName,
                    workOndutyPerson0:this.workOndutyPerson0,
                    startDate:this.startDate,    
                    endDate:this.endDate,    
                    machineRunDetail:this.machineRunDetail,    
                    testCutMachine:this.testCutMachine,     
                    workRunMachine:this.workRunMachine,     
                    workConnectLine:this.workConnectLine,   
                    actionDetail1:this.actionDetail1,
                    actionDetail2:this.actionDetail2,
                    actionDetail3:this.actionDetail3,
                    actionDetail4:this.actionDetail4,
                    actionDetail5:this.actionDetail5,
                    actionDetail6:this.actionDetail6,
                    actionDetail7:this.actionDetail7,
                    actionDetail8:this.actionDetail8,
                    actionDetail9:this.actionDetail9,
                    actionDetail10:this.actionDetail10,
                }
            }else if(this.sign == true){
                obj = {
                    id:this.bb.id,
                    ticketAsignPerson:this.ticketAsignPerson,
                }
            }else if(this.ing == true){
                obj = {
                    id:this.bb.id,
                     ifDone1:this.ifDone1,
                    ifDone2:this.ifDone2,
                    ifDone3:this.ifDone3,
                    ifDone4:this.ifDone4,
                    ifDone5:this.ifDone5,
                    ifDone6:this.ifDone6,
                    ifDone7:this.ifDone7,
                    ifDone8:this.ifDone8,
                    ifDone9:this.ifDone9,
                    ifDone10:this.ifDone10,
                    ifRecover1:this.ifRecover1,
                    ifRecover2:this.ifRecover2,
                    ifRecover3:this.ifRecover3,
                    ifRecover4:this.ifRecover4,
                    ifRecover5:this.ifRecover5,
                    ifRecover6:this.ifRecover6,
                    ifRecover7:this.ifRecover7,
                    ifRecover8:this.ifRecover8,
                    ifRecover9:this.ifRecover9,
                    ifRecover10:this.ifRecover10,
                    doPerson:this.doPerson,
                }
            }
            return obj
        }
        
    },
    props:['bb'], 
    mounted(){
         var params={
            userid:store.getters.userInfo.id
        }
             getAction('/sys/user/queryUserRole',params).then(res=>{
            console.log('dengji',res)
            if(res.result[0] == '1364736776864395266'){ //负责人
                    if(this.bb.workOndutyPerson0 == null){
                        this.draft = true
                    }
            }else if(res.result[0] == "1370219732497555457"){ //执行人
                if(this.bb.ticketAsignPerson != null && this.bb.doPerson == null){
                    this.ing = true
                }
            }
            })

        if(this.bb.workOndutyPerson0 != null && this.bb.ticketAsignPerson == null){
            this.sign = true
        }
        
        
    }
}
</script>
<style scoped>
td{
    padding-top: 1px;
    padding-right: 1px;
    padding-left: 1px;
    vertical-align: middle;
    white-space: nowrap;
    color: windowtext;
    font-size: 12pt;
    font-weight: 400;
    font-style: normal;
    font-family: 宋体;
    text-decoration: none;
    border: 1px solid #000;
     }
.center{
    width:631px;
     background-color: #E5EDF0 !important;
     } 
.a{
    height:50px !important;
}
.b{
    width:144px !important;
}
.bb{
    position:relative;
}
</style>